package java_IfAndSwitch.demo2;

/**
 * 乱序的枚举类,lookupswitch建表
 */
public enum SortTemp {
    // ordinal 是 0,1,2,3, 但 code 是 0,1,5,9 (不连续)
    PENDING(0), ACTIVE(1), COMPLETED(5), CANCELLED(9);
    private final int code;
    SortTemp(int code) {
        this.code = code;
    }
}
